package com.hl.card.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 管理员表
 * </p>
 *
 * @author huangpu
 * @since 2018-05-04
 */
public class SimpleUser extends Model<SimpleUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 头像
     */
	private String avatar;
	 /**
     * 会员0合伙人1
     */
	private String ismember;

    /**
     * 名字
     */
	private String name;
    /**
     * 生日
     */
	private Date birthday;
    /**
     * 性别（1：男 2：女）
     */
	private Integer sex;

    /**
     * 电话
     */
	private String phone;

    /**
     * 创建时间
     */
	private Date createtime;

	  /**
     * 用户id
     */
	private String user_id;

	/**
	 * 自身注册码
	 */
	private String reg_code;

	/**
	 * 上级注册码
	 */
	private String refer_reg_code;

	private String img;


	public String getUserId() {
		return user_id;
	}

	public void setUserId(String userId) {
		this.user_id = userId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}


	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}


	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getIsmember() {
		return ismember;
	}

	public void setIsmember(String ismember) {
		this.ismember = ismember;
	}


	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public String getReg_code() {
		return reg_code;
	}

	public void setReg_code(String reg_code) {
		this.reg_code = reg_code;
	}

	public String getRefer_reg_code() {
		return refer_reg_code;
	}

	public void setRefer_reg_code(String refer_reg_code) {
		this.refer_reg_code = refer_reg_code;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	@Override
	public String toString() {
		return "User{" +
			"id=" + id +
			", user_id=" + user_id +
			", avatar=" + avatar +
			", name=" + name +
			", birthday=" + birthday +
			", sex=" + sex +
			", phone=" + phone +
			", createtime=" + createtime +
			", ismember=" + ismember +
			"}";
	}
}
